﻿using System;
using System.Threading.Tasks;

namespace WebMiddleware
{
    public interface ITaskProxy
    {
        Task<TResult> InvokeAsync<TResult>(Func<TResult> func);

        Task Invoke(Action action);
    }
}
